import resolverProvider from './services/resolver.provider';
// import dateFormat from './directives/dateFormat.directive';
import ngDialogService from './services/ngDialog/ngDialog.service';
import { expandDetail, hide } from './directives/rowDetail/rowDetail.directive';
import uiUploader from './services/uiUploader/uiUploader.service';
import remainingDays from './filters/filter';
import authorizationBtn from './directives/authorization/authorizationBtn.directive';
// import authorizationView from './directives/authorization/authorizationView.directive';

/* global angular */
const shared = angular.module('core.shared', []);

// require('./directives/validation-test/validation-test.directive')(shared);

// require('./services/constants')(shared);
resolverProvider(shared);
// dateFormat(shared);


shared
  .service('ngDialogService', ngDialogService)
  .service('uiUploader', uiUploader)
  .service('uiUploader1', uiUploader);

shared
  .directive('expand', expandDetail)
  .directive('hide', hide)
  .directive('authorizationBtn', authorizationBtn);
  // .directive('authorizationView', authorizationView);

shared.filter('remainingDays', remainingDays);

export default shared;
